package com.webshop.domain.user;

import com.webshop.database.ConnPool;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Date;

public class User {
    private String username;
    private String password;
    String name;
    String email;
    String tel;
    String birthday;
    String sex;
    String state;
    String modify;
    String itemsid;

    public String getItemsid() {
        return itemsid;
    }

    public void setItemsid(String itemsid) {
        this.itemsid = itemsid;
    }

    public int getUserid() {
        return userid;
    }

    int userid;

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public String getTel() {
        return tel;
    }

    public String getBirthday() {
        return birthday;
    }

    public String getSex() {
        return sex;
    }

    public String getState() {
        return state;
    }

    public String getModify() {
        return modify;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setModify(String modify) {
        this.modify = modify;
    }


    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", tel='" + tel + '\'' +
                ", birthday='" + birthday + '\'' +
                ", sex='" + sex + '\'' +
                ", state='" + state + '\'' +
                ", modify='" + modify + '\'' +
                ", itemsid='" + itemsid + '\'' +
                ", userid=" + userid +
                '}';
    }
    //    public static void main(String[] args) {
//        User user = User.getUser("abcdef","123456");
//        System.out.println(user);
//    }
}
